<template>
	<div v-show="visible" class="loading-box">
			<div>
				<div class="icon">
					<div class="circul"></div>
				</div>
				<div class="text">加载中...</div>
			</div>
		</div>
</template>

<script>
export default {
	data () {
		return {
			visible: false
		}
	}
}
</script>
<style scoped lang="less">
.loading-box {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 9999;
	.text{
		margin-top: 4px;
		font-size: 14px;
		color: gray;
	}

	.icon {
		width: 32px;
		height: 32px;
		border-radius: 50%;
		border: 2px solid rgb(95, 162, 255);
		border-top: 2px solid transparent;
		animation: run 1s ease-out infinite;
	}

	@keyframes run {
		form {
			transform: rotate(0deg);
		}

		to {
			transform: rotate(360deg);
		}
	}
}
</style>
